<?php
class UsersController extends AppController {
	var $components = array('Auth');
	var $name = 'Users';
	
	function login() {
		
	}
	
	function logout() {
		$this->redirect($this->Auth->logout());
	}
	
	function add() {
		if (!empty($this->data)) {
			if ($this->User->save($this->data)) {
				$this->flash('User created.', '/users');
			}
		}
	}
	
}
?>